package site.param.remote;

import org.springframework.beans.factory.annotation.Autowired;
import site.param.init.ParameterMap;
import site.param.service.parameter.IParameterService;

import java.util.Map;

/**
 * Created by Administrator on 2016/12/30.
 */
@com.alibaba.dubbo.config.annotation.Service(version = "1.0.0", group = "site_param")
public class ParameterRemoteService implements IParameterRemoteService {
    @Autowired
    private IParameterService parameterService;

    public Map<String, ParameterMap> initParamter(Map<String, ParameterMap> parameterMapMap) {
        return  parameterService.initParamter(parameterMapMap);
    }

    public ParameterMap reloadParamter(ParameterMap parameterMap) {
        // 查询并返回
        return  parameterService.reloadParamter(parameterMap);
    }
}
